<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			console.log("a="+a);
			var a=10;
			console.log("a="+a);
			function foo1()
			{
			console.log("foo1()a=+a");
			var a=30;
			console.log("foo1()a="+a);
			}
			foo1();
			console.log("a="+a);
			console.log("b="+b);
		</script>
	</body>
</html>
